#include "Avalon/Threading/StopWatch.hpp"
#include <boost/date_time/posix_time/posix_time.hpp>

using namespace Avalon;
using namespace Avalon::Threading;
using namespace boost::posix_time;

StopWatch::StopWatch() {}

StopWatch::~StopWatch() {}

void StopWatch::Start() {
  m_startTime = microsec_clock::local_time();
}

void StopWatch::Stop() {
  m_stopTime = microsec_clock::local_time();
}

time_duration StopWatch::GetElapsedTime() const {
  return m_stopTime - m_startTime;
}
